<template>
    <div class="home">
      <h1>这是自定义的组件</h1>
      <li v-for="v in news">
          {{v.id}}-----{{v.title}}
      </li>
    </div>
</template>
<script>
  export default{
    name:'home',
      data(){
        return{
          news:[
            {id:1,title:'前端申'},
            {id:2,title:'后端君'},
            {id:2,title:'走丽水'}

          ]
        }
      }
  }


</script>
